package cn.school.controller.location;

import cn.school.common.api.CommonResult;
import com.alibaba.fastjson.JSON;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.*;

import java.util.Map;

/**
 * 位置服务
 */
@RestController
@RequestMapping("/location")
public class locationController {

    @ApiOperation("上报位置")
    @PostMapping("/provideLocation")
    public CommonResult<Integer> provideLocation(@RequestBody Map<String, Object> params) {
        System.out.println(JSON.toJSONString(params));
        return CommonResult.success();
    }
}
